<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    <title>移交--顶呱呱IBOSS系统</title>
<div class="body-main">
    <table  class="add-table form-table">
        <tbody>
        <tr>
            <th><span class="required">流程人员：</span></th>
            <td>
                <select class="select-style" id="flowUserId1" name="flowUserId1" divisionUser-select-law>
                    <option value>请选择</option>
                </select>
            </td>
        </tr>
        <tr>
            <th><span class="required">备注：</span></th>
            <td>
                <textarea class="textarea-style" id="remark" name="remark" rows="3" cols="50" placeholder="500字以内"></textarea>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<script type="text/javascript"
        src="${basePath}/static/js/zzsc/production/sc_divisionUser.js?v=${version}"></script>
<script type="text/javascript">

    function turnOverFlowUser(ids) {
        var flowUserId = $('[name="flowUserId1"]').val();
        var remark = $('[name="remark"]').val().trim();
        if (flowUserId == "") {
            DGG.Warning('请选择移交人！');
            return;
        }
        if (remark == "") {
            DGG.Warning('请填写备注！');
            return;
        }
        DGG.Confire("确认移交选中订单吗？", '移交', function () {
            DGG.loading();
            $.ajax({
                url: sysInfo.basePath + '/zzsc/abnormal_order/turnover_abnormal.do?ids=' + ids + '&flowUserId=' + flowUserId + '&remark=' + remark,
                type: "POST",
                dataType: "json",
                success: function (data) {
                    DGG.loading('close');
                    var msg = data.msg;
                    if (msg.indexOf("成功") > -1) {
                        DGG.Succeed("移交成功");
                        setTimeout(function () {
                            layer.closeAll();
                        }, 1000);
                        dataTableReload();
                        return;
                    } else {
                        DGG.Errors('移交失败！');
                        return;
                    }
                }
            });
        }, function () {

        });
    }

    $(document).ready(function () {
        areaLength($('#remark'), 500)
    });
</script>
